<?php
/**
 * This makes our life easier when dealing with paths. Everything is relative
 * to the application root now.
 */
error_reporting(E_ALL);
ini_set('display_errors', 'On');

chdir(dirname(__DIR__));

// Setup autoloading
include 'init_autoloader.php';

// Run the application!
try {
	Zend\Mvc\Application::init(include 'config/application.config.php')->run()->send();
}
catch(Exception $e) {
	echo $e->getMessage();
	echo '<br /><br />';
	echo nl2br($e->getTraceAsString());
}
